home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap13 / dun13_3.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  501 b   |  14 lines

  1. <SCRIPT LANGUAGE="VBScript">
  2.  
  3. for l=0 to document.all.length-1
  4.  
  5.     document.write document.all(l).tagName+"   "
  6.  
  7. next
  8.  
  9.  
  10.  
  11. document.write "<P>There are " & document.all.tags("LI").length-1 & _
  12.  
  13.                " <LI> tags on this page.<P>"
  14.  
  15. document.write "The first tag on this page is: " & _
  16.  
  17.                document.all.item(0).tagName & "<P>"
  18.  
  19. document.write "The 'myTag' element is a: " & _
  20.  
  21.                document.all.item("myTag").tagName & "<P>"
  22.  
  23.  
  24.  
  25. </SCRIPT>
  26.  
  27.